package com.example.design_pattern.memento.in;

/**
 * 负责人对象，负责保存和获取备忘录对象
 */
public class CaretakerrIn {

    private MementoInterface mMementoInterface;

    /**
     * 保存备忘录对象
     */
    public void saveMemento(MementoInterface mementoInterface){
        this.mMementoInterface = mementoInterface;
    }

    /**
     * 获取备忘录对象
     */
    public MementoInterface rertrieveMemento(){
        return this.mMementoInterface;
    }

}
